"
Code that is not contained in a Monticello package is not versioned and cannot be brought into a different image.
"
Class {
	#name : 'ReUnpackagedCodeRule',
	#superclass : 'ReAbstractRule',
	#category : 'General-Rules-Potential Bugs',
	#package : 'General-Rules',
	#tag : 'Potential Bugs'
}

{ #category : 'testing' }
ReUnpackagedCodeRule class >> checksClass [
	^ true
]

{ #category : 'testing' }
ReUnpackagedCodeRule class >> checksMethod [
	^ true
]

{ #category : 'accessing' }
ReUnpackagedCodeRule class >> group [
	^ self potentialBugsGroup
]

{ #category : 'accessing' }
ReUnpackagedCodeRule class >> ruleName [
	^ 'Unpackaged code'
]

{ #category : 'accessing' }
ReUnpackagedCodeRule class >> uniqueIdentifierName [
	"This number should be unique and should change only when the rule completely change semantics"

	^'UnpackagedCodeRule'
]

{ #category : 'running' }
ReUnpackagedCodeRule >> basicCheck: anEntity [

	^ anEntity package isNotNil and: [ anEntity package isUndefined ]
]
